package main;

public class Grade {
    private int datas;
    public int classify(int data){
         int degree;
         if(data >= 0){
             if(data > 2000){
                 degree = 1;
             }else if(data > 1300){
                 degree = 2;
             }else if(data > 800){
                 degree = 3;
             }else if(data > 500){
                 degree = 4;
             }else if(data > 200){
                 degree = 5;
             }else if(data > 50){
                 degree = 6;
             }else{
                 degree = 7;
             }
             return degree;
              }
         else
         {
             System.out.println("数据格式不对");
             return 404;
         }
    }}
